package com.szholly.data.general;

/**
 * 定义服务类型
 * 2014.6.4
 */
public enum UrlType {
	
	/**
	 * arcgisWFS
	 */
	ArcWFS(1),

	/**
	 * 
	 */
	GeoServerWFS(3),
	
	/**
	 * mzWFS
	 */
	MzWFS(4);

	private final int getUrlType;

	public int getUrlType() {
		return getUrlType;
	}

	private UrlType(int getUrlType) {
		this.getUrlType = getUrlType;
	}

	// 通过wfsQueryTypeId返回 WfsQueryType
	public static UrlType getTableTypeByTypeId(int getUrlType) {
		for (UrlType wfsQueryType : values()) {
			if (wfsQueryType.getUrlType() == getUrlType) {
				return wfsQueryType;
			}
		}
		return null;
	}
}
